<!DOCTYPE html>
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title><?= $web['name'] . ' - ' . $title?></title>
	<meta name="author" content="<?= $web['name']?>">
	<meta name="keywords" content="<?= $web['keywords']?>">
	<meta name="description" content="<?= $web['description']?>">
	<link rel="icon" href="/assets/icon.png" type="image/x-icon">
	<link rel="stylesheet" href="/assets/plugins/swiper/swiper.min.css">
	<link rel="stylesheet" href="/assets/index/css/main.css">
	<link rel="stylesheet" href="/assets/plugins/layui/css/layui.css">
	<script type="text/javascript" src="/assets/plugins/jquery/jquery.min.js"></script>
	<script type="text/javascript" src="/assets/plugins/layui/layui.js"></script>
	<script type="text/javascript" src="/assets/plugins/vue/vue.min.js"></script>
</head>
<body>
<script>
layui.use('element', function(){
  var element = layui.element;
});
</script>
<div class="section scroll">
	<ul class="layui-nav" lay-filter="">
		<li class="nav-logo"><img src="/assets/index/index-logo.png"></li>
		<?php if (!empty($menu)): foreach ($menu as $first): ?>
		<?php if (isset($first['child']) AND $first['status']['value']==1):?>
		<li class="layui-nav-item <?= $key === $first['key']?'layui-this':''?>">
			<a href="javascript:;"><?=$first['name']?></a>
			<dl class="layui-nav-child"> <!-- 二级菜单 -->
				<?php foreach ($first['child'] as $two): if($two['status']['value']==1): ?>
				<dd>
					<?php if(empty($two['url'])):?>
						<a href="/index/<?= $two['key']?>.html"><?=$two['name']?></a>
					<?php else:?>
						<a href="<?= $two['url']?>" target="_blank"><?=$two['name']?></a>
					<?php endif;?>
				</dd>
				<?php endif; endforeach;?>
			</dl>
		</li>
		<?php elseif($first['status']['value']==1):?>
		<li class="layui-nav-item <?= $key===$first['key']?'layui-this':''?>">
			<?php if(empty($first['url'])):?>
				<a href="/index/<?= $first['key']?>.html"><?=$first['name']?></a>
			<?php else:?>
				<a href="<?= $first['url']?>" target="_blank"><?=$first['name']?></a>
			<?php endif;?>
		</li>
		<?php endif;endforeach;endif;?>
	</ul>
	<?php if($store['is_login']):?>
				<ul class="layui-nav layui-layout-right">
				  <li class="layui-nav-item <?= $key === 'user'?'layui-this':''?>">
					<a href="javascript:;">
					  <img src="/assets/index/head.jpg" class="layui-nav-img">
					  <?= $store['user']['user_name']?>
					</a>
					<dl class="layui-nav-child">
						<dd><a href="/user.php">应用列表</a></dd>
						<dd><a href="<?= url('user/wallet')?>">账户钱包</a></dd>
						<dd><a href="<?= url('user/renew')?>">修改密码</a></dd>
					</dl>
				  </li>
				  <li class="layui-nav-item"><a href="<?= url('login/logout')?>">退出</a></li>
				</ul>
			<?php else:?>
				<div class="nav-login layui-btn-container layui-layout-right">
				<a href="/login.php" class="layui-btn layui-btn-normal layui-btn-sm"> 登 陆 </a>
				<a href="/regist.php" class="layui-btn layui-btn-normal layui-btn-sm"> 注 册 </a>
				<a href="/admin.php"  target="_blank" class="layui-btn layui-btn-normal layui-btn-sm"> 后 台 </a>
				</div>
			<?php endif;?>
	
</div>
<!-- 内容区域 start -->
<div>
        {__CONTENT__}
</div>
<!-- 内容区域 end -->
<div class="section foot">
    <div class="bottom-info">
        <h1>定制小程序、公众号，抢占微信海量用户红利！</h1>
        <a href="#">立即定制</a>
    </div>
</div>
<div class="section">
    <div class="foot-nav-box">
        <div class="foot-nav">
            <div class="nav-list">
                <p  style="margin-bottom: 0;">
					客服QQ：<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=19966591&site=qq&menu=yes">19966591</a> &nbsp;&nbsp;
					QQ交流群： <a target="_blank" href="//shang.qq.com/wpa/qunwpa?idkey=3d8a3f28e60006b3868b12a4ec750ca5606a67c0c1b61081833dbbdeeb5ca698">916181349</a> &nbsp;&nbsp;
					客服热线：<?= $web['phone']?> &nbsp;&nbsp;
					周一到周日：9:00-17:30 &nbsp;&nbsp;
				</p>
				友情链接：&nbsp;&nbsp;&nbsp;
				<?php foreach ($link as $idx => $item): if($idx==0):?>
				<a href="<?= $item['url']?>" target="_blank"><?= $item['name']?></a>&nbsp;&nbsp;&nbsp;
				<?php else:?>
				丨&nbsp;&nbsp;&nbsp;<a href="<?= $item['url']?>" target="_blank"><?= $item['name']?></a>&nbsp;&nbsp;&nbsp;
				<?php endif;endforeach;?>
                <p style="margin-bottom: 0;">《中华人民共和国增值电信业务经营许可证》 <?= $web['icp']?>&nbsp;&nbsp; ©2016-2020 &nbsp;<?= $web['domain']?>&nbsp;<?= $web['name']?>&nbsp;版权所有  </p>
            </div>
            <div class="downApp">
                <img src="<?= $web['qrcode']?>">
                <p>关注我们</p>
            </div>
        </div>
    </div>
</div>
<script src="/assets/plugins/swiper/swiper.min.js"></script>
<script>
    var swiper = new Swiper('.swiper-container', {
		speed:1000,
        autoplay: {
			delay: 5000,//1秒切换一次
		 },
        slidesPerView: 1,
        spaceBetween: 0,
        loop: true,
        pagination: {
            el: '.swiper-pagination',
            clickable: true,
        }
    });
    var swipers = new Swiper('.swiper-container-item', {
        slidesPerView: 4,
        spaceBetween: 30,
        navigation: {
            nextEl: '.swiper-button-next',
            prevEl: '.swiper-button-prev',
        },
    });
</script>
</body>
</html>